﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

// MobiLib, Copyright Mirosław M. Mączka.  All Rights Reserved. This code released under the terms of the Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

namespace MobiLibrary
{
    public class MT
    {
        //
        //==================================================================================================================================
        //
        public static string MobiType2String(int n)
        {
            switch (n)
            {
                case 2: return "Mobipocket Book(2)";
                case 3: return "PalmDoc Book(3)";
                case 4: return "Audio(4)";
                case 257: return "News(257)";
                case 258: return "News_Feed(258)";
                case 259: return "News_Magazine(259)";
                case 513: return "PICS(513)";
                case 514: return "WORD(514)";
                case 515: return "XLS(515)";
                case 516: return "PPT(516)";
                case 517: return "TEXT(517)";
                case 518: return "HTML(518)";
            }
            return string.Format("{0}", n);
        }
        //
        //==================================================================================================================================
        //
    }
}
